<?php

//数据库
$db = require __DIR__ . '/db.php';
//钉钉配置
$dingTalk = require __DIR__ . '/dingtalk.php';

//开发模式
if (APP_DEBUG) {
    $pageTrace = true;//trace
    $cache = false;//缓存
}
//公共配置
$config = array(
    //默认控制器
    'DEFAULT_CONTROLLER' => 'Project',
    //视图目录
    'DEFAULT_V_LAYER' => 'View',
    //开启缓存
    'TMPL_CACHE_ON' => $cache,
    //错误信息
    'TMPL_EXCEPTION_FILE' => APP_VIEW_PATH . '/common/error.html',
    'ERROR_MESSAGE' => '哦，出错了~请稍后再试',
    'SHOW_PAGE_TRACE' => $pageTrace,
    //钉钉配置
    'DINGTALK' => $dingTalk,
    //用户登录过期时间
    'USER_TOKEN_EXPIRE' => 3600,
    //url模式-rewrite
    'URL_MODEL' => 2,
    //伪静态
    'URL_HTML_SUFFIX' => '',
    //日志设置

);

$config = array_merge($config, $db);
return $config;